<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="order by dede58.com"/>
    <title>离退休管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">

</head>

<body>
<section class="layui-larry-box">
    <H2 align="center">离退休员工信息</H2>
    <br>
    <div class="larry-personal">
        <div class="layui-tab">
            <blockquote class="layui-elem-quote news_search">
                <div class="layui-inline">
                    <form class="layui-form" action="/lituixiu/list">
                        <div class="layui-inline">
                            <div class="layui-inline">
                                <label class="layui-form-label">姓名</label>
                                <div class="layui-input-inline">
                                    <input name="empname" placeholder="请输入姓名" class="layui-input search_input"
                                           type="text">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门</label>
                                <div class="layui-input-inline">
                                    <select name="dname" class="newsLook" lay-filter="browseLook">
                                        <option value="">--请选择--</option>
                                        <c:forEach items="${ml}" var="ml">
                                            <option value="${ml.dname}">${ml.dname}</option>
                                        </c:forEach>

                                    </select>
                                    <div class="layui-unselect layui-form-select">
                                        <div class="layui-select-title"><input placeholder="开放浏览" value="开放浏览"
                                                                               readonly=""
                                                                               class="layui-input layui-unselect"
                                                                               type="text"><i class="layui-edge"></i>
                                        </div>
                                        <dl class="layui-anim layui-anim-upbit">
                                            <dd lay-value="0" class="layui-this">开放浏览</dd>
                                            <dd lay-value="1" class="">会员浏览</dd>
                                        </dl>
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">性别</label>
                                    <input type="radio" name="sex" value="男" title="男">
                                    <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                            class="layui-anim layui-icon"></i><span>男</span></div>
                                    <input type="radio" name="sex" value="女" title="女">
                                    <div class="layui-unselect layui-form-radio"><i
                                            class="layui-anim layui-icon"></i><span>女</span></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">学历</label>
                                <div class="layui-input-inline">
                                    <select name="education" class="newsLook" lay-filter="browseLook">
                                        <option value="">--请选择--</option>
                                        <option value="小学">小学</option>
                                        <option value="初中">初中</option>
                                        <option value="高中">高中</option>
                                        <option value="大学">大学</option>
                                        <option value="高等">高等</option>
                                    </select>
                                    <div class="layui-unselect layui-form-select">
                                        <div class="layui-select-title"><input placeholder="" value="" readonly=""
                                                                               class="layui-input layui-unselect"
                                                                               type="text"><i class="layui-edge"></i>
                                        </div>
                                        <dl class="layui-anim layui-anim-upbit">
                                            <dd lay-value="0" class="layui-this">开放浏览</dd>
                                            <dd lay-value="1" class="">会员浏览</dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <input class="layui-btn" type="submit" value="查询"/>
                                <a href="list?paixu=2" class="layui-btn">升序</a>
                                <a href="list?paixu=1" class="layui-btn">降序</a>
                            </div>
                            <div class="layui-inline"><%--${pageContext.request.contextPath}/lituixiu/addemp"--%>
                                <a href="${pageContext.request.contextPath}/lituixiu/addemp"
                                   class="layui-btn layui-btn-normal ">添加离退员工</a>
                            </div>
                        </div>
                    </form>
                    <script type="text/javascript"
                            src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
                    <%--
                                        <script type="text/javascript" src="${pageContext.request.contextPath}/js/newsadd.js"></script>
                    --%>
                </div>
            </blockquote>

            <!-- 操作日志 -->
            <div class="layui-form news_list">
                <table class="layui-table">
                    <colgroup>
                        <col width="50">
                        <col width="9%">
                        <col width="9%">
                        <col width="9%">
                        <col width="9%">
                        <col width="9%">
                        <col width="15%">
                    </colgroup>
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>人员编号</th>
                        <th>人员姓名</th>
                        <th>所在部门</th>
                        <th>性别</th>
                        <th>身份证号</th>
                        <th>出生日期</th>
                        <th>籍贯</th>
                        <th>学历</th>
                        <th>名族</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody class="news_content">
                    <c:forEach items="${empfy.pl}" var="listemps">
                        <tr>
                            <td align="left">${listemps.id}</td>
                            <td>${listemps.empid}</td>
                            <td>${listemps.empname}</td>
                            <td>${listemps.dname}</td>
                            <td>${listemps.sex}</td>
                            <td>${listemps.idcard}</td>
                            <td>${listemps.birthday}</td>
                            <td>${listemps.natives}</td>
                            <td>${listemps.education}</td>
                            <td>${listemps.nation}</td>
                            <td>
                                <a href="${pageContext.request.contextPath}/lituixiu/chakan?id=${listemps.id}"
                                   class="layui-btn layui-btn-normal layui-btn-mini"><i class="iconfont icon-edit"></i>
                                    查看</a>
                                <a href="${pageContext.request.contextPath}/lituixiu/toupdate?id=${listemps.id}"
                                   class="layui-btn layui-btn-mini "><i class="iconfont icon-edit"></i> 修改</a>
                                <a href="EmpJiLu?id=${listemps.id}" class="layui-btn layui-btn-mini"><i
                                        class="iconfont icon-edit"></i> 离退记录</a>
                                <a href="${pageContext.request.contextPath}/lituixiu/del?empid=${listemps.empid}"
                                   class="layui-btn layui-btn-danger layui-btn-mini" data-id="1"><i
                                        class="layui-icon"></i> 删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>

            </div>
            <!-- 登录日志 -->
            <div class="layui-tab-item layui-field-box">
                <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                    <thead>
                    <tr>
                        <th><input type="checkbox" id="selected-all"></th>
                        <th>ID</th>
                        <th>管理员账号</th>
                        <th>状态</th>
                        <th>最后登录时间</th>
                        <th>上次登录IP</th>
                        <th>登录IP</th>
                        <th>IP所在位置</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td><input type="checkbox"></td>
                        <td>110</td>
                        <td>admin</td>
                        <td>后台登录成功</td>
                        <td>2016-12-19 14:26:03</td>
                        <td>127.0.0.1</td>
                        <td>127.0.0.1</td>
                        <td>Unknown</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="div" align="center">
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lituixiu/list?currentPage=1">首页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lituixiu/list?currentPage=${empfy.currentPage-1<=0?1:empfy.currentPage-1}">上一页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lituixiu/list?currentPage=${empfy.currentPage+1>=empfy.totalPage?empfy.totalPage:empfy.currentPage+1}">下一页</a>
                <a class="a layui-btn layui-btn-normal layui-btn-mini"
                   href="${pageContext.request.contextPath}/lituixiu/list?currentPage=${empfy.totalPage}">尾页</a>
                <form class="font" action="${pageContext.request.contextPath}/lituixiu/list">
                    跳转到第<input class="input" type="text" name="currentPage"/>页
                    <input class="a layui-btn layui-btn-mini" type="submit" value="查询"/>
                </form>
            </div>
        </div>
    </div>

</section>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/newslist.js"></script>


</body>
</html>